
package com.be.beadmin.quality.repository;

import com.be.beadmin.quality.entity.TemplateInspectionItem;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author ljh
* @date 2023-05-18
**/
public interface TemplateInspectionItemRepository extends JpaRepository<TemplateInspectionItem, String>, JpaSpecificationExecutor<TemplateInspectionItem> {

    TemplateInspectionItem findTemplateInspectionItemByIdAndDelete(String id, Integer delete);

    TemplateInspectionItem findTemplateInspectionItemById(String id);

    List<TemplateInspectionItem> findTemplateInspectionItemByInspectionTemplateIdAndDelete(String inspectionTemplateId, Integer delete);

    TemplateInspectionItem findTemplateInspectionItemByInspectionTemplateIdAndSortIdAndDelete(String inspectionTemplateId, int sortId, Integer delete);
}